package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.HashMap;


/**
 * serialize HashMap object into mapping node
 * deserialize HashMap from mapping yaml node
 * @author shnireck
 *
 */
public class HashMapSerializer extends MapSerializer <HashMap <Object, Object>> {

	public HashMapSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public HashMap <Object, Object> createObject () throws GamlException { return new HashMap <Object, Object> (); }

	@Override
	public Class <HashMap <Object, Object>> getObjectClass () {return (Class <HashMap <Object, Object>>) (new HashMap <Object, Object> ()).getClass (); }
}
